package fly.gdx.game.client;


import fly.gdx.desktop.window.FlyWindow;
import fly.gdx.game.plane.PlaneGame;
import fly.gdx.graphics.FlyRenderer2D;
import fly.shared.Event;

public class DesktopLauncher
{
	static FlyWindow window;
	static PlaneGame game;
	
	public static void Init()
	{
		Event<Object> init = new Event<Object>() {
			@Override public void invoke(Object object)
			{
				DesktopLauncher.game = new PlaneGame();
			}
		};
		
		window = new FlyWindow("",600,800,init);
		window.SetEventRender(new Event<FlyRenderer2D>() {
			@Override public void invoke(FlyRenderer2D renderer)
			{
				game.GetGameScene().draw();
			}
		});
	}
	
	
	public static void main (String[] arg)
	{
		Init();
	}
	
	
}






















